package com.snowfield.lbcommon.velocity.keepalived;

import java.util.ArrayList;
import java.util.List;

/**
 * keepalived vrrp instance对象
 */
public class VRRPInstance {
    private String state = "MASTER";
    private String interfaceName = "eth0";
    private Integer priority = 100;
    private Integer virRouterId = 100;
    //广播间隔，单位秒
    private Integer advertInt = 1;
    //集群间通信协议,组播：multicast,单播：unincast
    private String vrrpProto = "multicast";
    private String srcIp = "";
    private String peerIp = "";

    private List<String> virIpAddressList = new ArrayList<>();

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Integer getVirRouterId() {
        return virRouterId;
    }

    public void setVirRouterId(Integer virRouterId) {
        this.virRouterId = virRouterId;
    }

    public Integer getAdvertInt() {
        return advertInt;
    }

    public void setAdvertInt(Integer advertInt) {
        this.advertInt = advertInt;
    }

    public String getVrrpProto() {
        return vrrpProto;
    }

    public void setVrrpProto(String vrrpProto) {
        this.vrrpProto = vrrpProto;
    }

    public String getSrcIp() {
        return srcIp;
    }

    public void setSrcIp(String srcIp) {
        this.srcIp = srcIp;
    }

    public String getPeerIp() {
        return peerIp;
    }

    public void setPeerIp(String peerIp) {
        this.peerIp = peerIp;
    }

    public List<String> getVirIpAddressList() {
        return virIpAddressList;
    }

    public void setVirIpAddressList(List<String> virIpAddressList) {
        this.virIpAddressList = virIpAddressList;
    }
}
